{
    /* declaration list */
    int i;
    int m;
    int n;
    int tmp;
    bool stop;
    /* statement list */
    read m;
    read n;
    /* let m be the larger number */
    if ( m < n ) {
        tmp = n;
        n = m;
        m = tmp;
    }
    i = m;
    stop = false;
    do{
        if ( i % m == 0 ){ 
            if ( i % n == 0 ){
                write(i);
                stop = true;
            }
        }
        i = i + 1;
    }while ( not stop );
}